<!doctype html>
<html>
	<head>
		<meta charset="utf-8">
		<title>Material Stock list</title>
		<link rel="stylesheet" href="${request.contextPath}/static/asset/jquery-ui/1.11.1/jquery-ui.min.css">
		<link rel="stylesheet" href="${request.contextPath}/static/asset/jqGrid/4.6.0/css/ui.jqgrid.css">
		<#include "../../inc/css.ftl">
   
	</head>
	<body class="no-skin">
		<div class="container-fluid">
			<div class="row">
			  <div class="breadcrumbs">
				<ul class="breadcrumb">
					<li><i class="ace-icon fa fa-home home-icon"></i><a href="${request.contextPath}/index.jspx">首页</a></li>
					<li><a href="">报表</a></li>
					<li><a href="list.jspx">原材料</a></li>
					<li class="active">列表</li>
				</ul>
				  <!-- /.breadcrumb -->
			  </div>
			  <!-- /.breadcrumbs -->
			</div>
			<!-- /.row -->
			<div class="row">
				<select id="report_code">
					<option value="0">全部</option>
				</select>
				<select id="report_year">
					<option value="0">全部</option>
					<#list 2015..2017 as year>
                    <option value="${year}">${year}</option>
                    </#list>
				</select>年
				<select id="report_month">
					<option value="0">全部</option>
					<#list 1..12 as month>
                    <option value="${month}">${month}</option>
                    </#list>
				</select>月
				<select id="report_day">
					<option value="0">全部</option>
					<#list 1..31 as day>
                    <option value="${day}">${day}</option>
                    </#list>
				</select>日
				<button id="btn_year">年报表</button>
				<button id="btn_month">月报表</button>
				<button id="btn_day">日报表</button>
				<button id="btn_excel">导出报表</button>
				<span id="excel_result"></span>
			</div>
			<div class="row">
			   <table id="gridTable"></table>
			   <div id="gridPager"></div>
			</div>
		</div>
		<#include "../../inc/js.ftl">
		<script src="${request.contextPath}/static/asset/zTree/3.5.17/js/jquery.ztree.core-3.5.js"></script>
		<script src="${request.contextPath}/static/asset/jquery-ui/1.11.1/jquery-ui.min.js"></script>
		<script src="${request.contextPath}/static/asset/jqGrid/4.6.0/js/i18n/grid.locale-cn.js"></script>
		<script src="${request.contextPath}/static/asset/jqGrid/4.6.0/js/jquery.jqGrid.min.js"></script>
		<script src="${request.contextPath}/static/skin/default/js/custom-jqgrid.js"></script>
		<script src="${request.contextPath}/static/skin/default/js/report.js"></script>
		<script>
			$(document).ready(function(){
				report.MaterialStock.initGrid();
				report.MaterialStock.init();
			});
		</script>	
	</body>
</html>